home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume17 / mgr / part15 < prev    next >
Encoding:
Internet Message Format  |  1989-01-19  |  49.1 KB

  1. Subject:  v17i016:  MGR, Bellcore window manager, Part15/61
  2. Newsgroups: comp.sources.unix
  3. Approved: rsalz@uunet.UU.NET
  4.  
  5. Submitted-by: Stephen A. Uhler <sau@bellcore.com>
  6. Posting-number: Volume 17, Issue 16
  7. Archive-name: mgr/part15
  8.  
  9.  
  10.  
  11.  
  12. #! /bin/sh
  13. # This is a shell archive.  Remove anything before this line, then unpack
  14. # it by saving it into a file and typing "sh file".  To overwrite existing
  15. # files, type "sh file -c".  You can also feed this as standard input via
  16. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  17. # will see the following message at the end:
  18. #        "End of archive 15 (of 61)."
  19. # Contents:  demo/sh/menu font-16/Ucmr9x16r font-16/Ucmr9x16ru
  20. #   font-32/Ucmr9x16r font-32/Ucmr9x16ru font-32/Ucour8x16r
  21. #   font-32/Ucour8x16rI font-32/Ucour8x16ru font-32/Ugal9x16rI
  22. #   font-32/User8x16rI font-32/User8x16ru src/bitmapread.c
  23. #   src/get_font.c src/menu.h
  24. # Wrapped by rsalz@papaya.bbn.com on Thu Nov 17 21:05:16 1988
  25. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  26. if test -f 'demo/sh/menu' -a "${1}" != "-c" ; then 
  27.   echo shar: Will not clobber existing file \"'demo/sh/menu'\"
  28. else
  29. echo shar: Extracting \"'demo/sh/menu'\" \(3182 characters\)
  30. sed "s/^X//" >'demo/sh/menu' <<'END_OF_FILE'
  31. X#!/bin/ksh
  32. X#                        Copyright (c) 1987 Bellcore
  33. X#                            All Rights Reserved
  34. X#       Permission is granted to copy or use this program, EXCEPT that it
  35. X#       may not be sold for profit, the copyright notice must be reproduced
  36. X#       on copies, and credit should be given to Bellcore where it is due.
  37. X#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  38. X
  39. X#    $Header: menu,v 4.1 88/06/21 14:01:33 bianchi Exp $
  40. X#    $Source: /tmp/mgrsrc/demo/sh/RCS/menu,v $
  41. X
  42. X# Select a pop-up menu in the current mgr window,
  43. X# Or download and select a menu
  44. X# Or just download a new menu and don't select it.
  45. X# Menus are activated by the middle mouse button.
  46. X# See "man menu" for more details
  47. X
  48. X# Complaints to: Paul Tukey, paul@bellcore
  49. X
  50. XTAB="    " FONT=7 NAME= C="`basename $0`" LOAD=1 SELECT=
  51. Xif test "$TERM" != mgr; then
  52. X    echo "$C only works with mrg" >&2; exit
  53. Xfi
  54. Xfor ARG
  55. Xdo
  56. X    case "$ARG" in
  57. X      -l*) LOAD="`expr 0 + \`echo $ARG | sed 's/..//'\``";;
  58. X      -s*) SELECT="`expr 0 + \`echo $ARG | sed 's/..//'\``";;
  59. X      -f*) FONT="`echo $ARG | sed 's/..//'`";;
  60. X      -d*) TAB="`echo $ARG | sed 's/..//'`";;
  61. X      -n*) NAME="`echo $ARG | sed 's/..//'`";;
  62. X       -*) echo >&2 "$C: unknown option $ARG"; exit 1; exit;;
  63. X    *) break;;
  64. X    esac
  65. X    shift
  66. Xdone
  67. X
  68. Xcase "$SELECT" in
  69. X     0) ;;
  70. X    "") SELECT=$LOAD;;
  71. X     *) echo "^[${SELECT}m\c"; exit
  72. Xesac
  73. X
  74. Xcase $# in
  75. X  0) if test -t 0; then
  76. X    echo >&2 "Usage: $C [-l<load-pos>] [-s<select-pos>]
  77. X        [-f<font>] [-d<delim>] [-n<name>] menufile(s)"
  78. X    exit
  79. X     fi
  80. Xesac
  81. X
  82. Xif test "X$NAME" = "X" -a "X$*" != X; then
  83. X    NAME="`echo \"$*\" | tr 'a-z' 'A-Z' | sed 's/ /; /'`"
  84. X    fi
  85. X
  86. Xstty tabs
  87. X(/bin/cat $*; echo pos=9999) | 
  88. X    awk -F"$TAB" '
  89. X    BEGIN { TAB = FS
  90. X        first = 0; nameflag = 0
  91. X        font = "'"$FONT"'"
  92. X        pos = "'"$LOAD"'"
  93. X        items = ""; actions = ""; name = ""; nameact = ""
  94. X        defaultname = "'"$NAME"'" }
  95. X    /^delim=/ { if ( NR != 1 ) { print "echo Error: delim= line must be first"; exit }
  96. X        FS = substr($0,7,1); TAB = FS; next }
  97. X    $0 ~ /^pos=/ && first == 0 { pos = substr($0,5); first = 1; next }
  98. X    /^font=/  { font = substr($0,6); next }
  99. X    /^name=/  { nameflag = 1
  100. X        if ( length($0) > 5 ) {
  101. X            name = name TAB substr($0,6)
  102. X            nameact = nameact TAB }
  103. X        next }
  104. X    /^pos=/ { if ( nameflag != 1 && defaultname != "" ) {
  105. X            name = TAB defaultname
  106. X            nameact = TAB
  107. X            }
  108. X          items = name items
  109. X          actions = nameact actions TAB
  110. X          if ( length(items) == 0 ) items = TAB " " TAB
  111. X          line = "^[" pos "," font "," length(items actions) "m" items actions
  112. X          printf "%s", line
  113. X           pos = substr($0,5)
  114. X          items = ""; actions = ""; name = ""; nameact = ""
  115. X          nameflag = 0
  116. X          next
  117. X         }
  118. X    { if ( $1 == "" ) items = items TAB " "
  119. X      else items = items TAB $1
  120. X      first = 1
  121. X      actions = actions TAB
  122. X      if( NF > 1) { act = ""
  123. X            for(i=2; i<=NF; i++)
  124. X            if(length($i) > 0 ) {
  125. X                    act = $i; break }
  126. X            if ( substr(act,length(act)-1,2) == "\\c" )
  127. X            actions = actions substr(act,1,length(act)-2)
  128. X            else
  129. X            actions = actions act "\r"
  130. X            }
  131. X      }
  132. X    END { line = "^['"$SELECT"'m"
  133. X      printf "%s", line
  134. X      }
  135. X  '
  136. END_OF_FILE
  137. chmod +x 'demo/sh/menu'
  138. # end of 'demo/sh/menu'
  139. fi
  140. if test -f 'font-16/Ucmr9x16r' -a "${1}" != "-c" ; then 
  141.   echo shar: Will not clobber existing file \"'font-16/Ucmr9x16r'\"
  142. else
  143. echo shar: Extracting \"'font-16/Ucmr9x16r'\" \(3213 characters\)
  144. sed "s/^X//" >'font-16/Ucmr9x16r' <<'END_OF_FILE'
  145. Xbegin 644 cmr9x16r.fnt
  146. XM%@D0!8               %4_PP&'^                               
  147. XM  $                   0                                     
  148. XM                                                            
  149. XM                  '^_@@/ P?G^?C,/"J_PP&'^& P !( #,   / P    
  150. XM     /@   P  D>C$& P!!         $& P.!P!!\'#\/ P       !X  P_
  151. XM T^'\_AH_QX'GN\"$YQX_#P^!T?GN]W.]WN?AX0!X$  "  X  '  '  X P#
  152. XM'                        \$'@ '^8@@9@P?C,8G^&%4_PP&&&& P/!( 
  153. XM#,   0@P         .@   P[@DEF\/ P" @        $/#P)"(#!X-CX8A8 
  154. XM  !  0#,, P9AL9#$8C89@P##(8"$<C,9F89",?C$8B$8C$1A 0 ($  $  8
  155. XM  #  ,@ 8 P## .           $         !@$ P9G^8 @9@P0C,,$R&"J_
  156. XMPP&&&(!(& P?@    0@P         .    P[@DDFH,@0$ 0$       () P9
  157. XMC,#! =B(8C,   "  (#,2 P9A$9C 8"(9@P##08#,<C,9F89B$6C$8B$-!H#
  158. XM! ( (.  &  8  #  ,@ 8   # &           $         !@$ P_'^$ @9
  159. XM@P0C,,$R/%4_PP&&&          #LI0   0      .    P[G^T&H,@@, 85
  160. XM @     (9@P9C,'! 8 08C,& P$  $ (A P9C$8S 8&(9@P##@8#,6C,9F89
  161. XMC &#$-"T.!H#! ( (5  &'P> \/!P_ \?!P'#<&',_ P^!T?#X_G<]V,]W>?
  162. XMA@$ PF'^( @?A8?C,& P?BJ_PP&&&          #TF0   (      /    P1
  163. XM!(\#0-  , 8. @     09@P!@8+!P> 0-#,& P('\" 0GA89C 8S0:& 9@P#
  164. XM#P8#,6C,9F89#P&#$-"T& P&! $ (D@  &89!L3#(,!,9@P##0&#N9A(9",-
  165. XMD(,#,8F,-#,3!@$ P '^_P@?A8?C,& P?E4_PP&&&          $RB0  '^ 
  166. XM     /    P1!(> 0&  , 8_@@     09@P! P3!(= 0'#,   0  ! PIA8?
  167. XM# 8SP>& ?@P##P8#,3C,?&8>!X&#$-#\& P&! $ ($    89C S&,,#,9@P#
  168. XM#@EC,9F,,& ,#,8F,.!$#' $ < '^( @?A80C,$ P?BJ_PP&&&       
  169. XM   $RF0   (      .    P !(' L.P , 8.'\ #\  @9@P" (3 ,9@P+A\ 
  170. XM  (  " PIAX8C 8S0:&\9@P##P8"T3C,8&8: <&#$'#,& P&! " ($   !X9
  171. XMC S'\,#,9@P##PEC,9F,,#P,#,-&L&!H&!@$ P '^$"H9A8 #,$ P/%4_
  172. XMPP&&&          $RI0   0      6      '^% Z2@ , 85 @     @9@P$
  173. XM#,_@,9@P1@\   $'\$ PFA88S$8S 8&89@P##88"T1C,8&8; ,&#$&#,' P,
  174. XM! " ($   #89C S& ,#,9@P##PEC,9F,,!X,C,-&L& P&!@$ P '^ !P9
  175. XMB,0C,( P&"J_PP&&&          $R0@          6      "0U!:S  $ 0$
  176. XM @$  $! ) P(C,##,9@P1B,   "  (  @",8Q$9C 8"89@P;#88"T1C,8&X;
  177. XM"$&#$&#,+ P,! ! ($   &<9C S& ,#,9@P##8&#&9C,9F,,$,,C,-'\' 0,
  178. XM!@$ P '^  @9B,?C,(@P&%4_PP&&&          "\0@          6    P 
  179. XM"0U!:S  " @  @.  .! / P?B(##(= P1#8& P!  0 P1",8QH9#$8#89@P;
  180. XM#,8B$0C,8&X9S,&!H&"$1@P8A ! ($   &<9!D3#$,!,9@P##8&#&9A(9",,
  181. XM&$,C,&'<)@@,A@$ P '^  @/'>?G^?AX/"J_PP&&&          #</      
  182. XM     7@   P "0>",2@ !!    .  ." &#\?AP'AP. P.!P& P     P.'>_
  183. XM@P^'\\!H_QX.'^_G.XAX\#\\RX/ P&"$[QX?AX AX$'^ #L6 X/AX> \_QX#
  184. XM'^/'N_PP>!\>%X'!^"&,]P@?@\$'@ '^             %4_PP&&&       
  185. XM                          $  ,0       &  $                  
  186. XM 0                                <                   '^    
  187. XM       ,   #        8 ,           @       '^             "J_
  188. XMPP&&&                  ?@                         $         
  189. XM             @                                              
  190. XM                  #,   ;        8 ,          #        '^    
  191. XM         %4_PP&'^                                           
  192. XM  (                                                         
  193. XM                              !X   >        \ <          #  
  194. XM      '^             "J_PP&'^                               
  195. XM                                                            
  196. XM                                                            
  197. X/                  '^
  198. Xend
  199. END_OF_FILE
  200. # end of 'font-16/Ucmr9x16r'
  201. fi
  202. if test -f 'font-16/Ucmr9x16ru' -a "${1}" != "-c" ; then 
  203.   echo shar: Will not clobber existing file \"'font-16/Ucmr9x16ru'\"
  204. else
  205. echo shar: Extracting \"'font-16/Ucmr9x16ru'\" \(3214 characters\)
  206. sed "s/^X//" >'font-16/Ucmr9x16ru' <<'END_OF_FILE'
  207. Xbegin 644 cmr9x16ru.fnt
  208. XM%@D0!8               %4_PP&'^                               
  209. XM  $                   0                                     
  210. XM                                                            
  211. XM                  '^_@@/ P?G^?C,/"J_PP&'^& P !( #,   / P    
  212. XM     /@   P  D>C$& P!!         $& P.!P!!\'#\/ P       !X  P_
  213. XM T^'\_AH_QX'GN\"$YQX_#P^!T?GN]W.]WN?AX0!X$  "  X  '  '  X P#
  214. XM'                        \$'@ '^8@@9@P?C,8G^&%4_PP&&&& P/!( 
  215. XM#,   0@P         .@   P[@DEF\/ P" @        $/#P)"(#!X-CX8A8 
  216. XM  !  0#,, P9AL9#$8C89@P##(8"$<C,9F89",?C$8B$8C$1A 0 ($  $  8
  217. XM  #  ,@ 8 P## .           $         !@$ P9G^8 @9@P0C,,$R&"J_
  218. XMPP&&&(!(& P?@    0@P         .    P[@DDFH,@0$ 0$       () P9
  219. XMC,#! =B(8C,   "  (#,2 P9A$9C 8"(9@P##08#,<C,9F89B$6C$8B$-!H#
  220. XM! ( (.  &  8  #  ,@ 8   # &           $         !@$ P_'^$ @9
  221. XM@P0C,,$R/%4_PP&&&          #LI0   0      .    P[G^T&H,@@, 85
  222. XM @     (9@P9C,'! 8 08C,& P$  $ (A P9C$8S 8&(9@P##@8#,6C,9F89
  223. XMC &#$-"T.!H#! ( (5  &'P> \/!P_ \?!P'#<&',_ P^!T?#X_G<]V,]W>?
  224. XMA@$ PF'^( @?A8?C,& P?BJ_PP&&&          #TF0   (      /    P1
  225. XM!(\#0-  , 8. @     09@P!@8+!P> 0-#,& P('\" 0GA89C 8S0:& 9@P#
  226. XM#P8#,6C,9F89#P&#$-"T& P&! $ (D@  &89!L3#(,!,9@P##0&#N9A(9",-
  227. XMD(,#,8F,-#,3!@$ P '^_P@?A8?C,& P?E4_PP&&&          $RB0  '^ 
  228. XM     /    P1!(> 0&  , 8_@@     09@P! P3!(= 0'#,   0  ! PIA8?
  229. XM# 8SP>& ?@P##P8#,3C,?&8>!X&#$-#\& P&! $ ($    89C S&,,#,9@P#
  230. XM#@EC,9F,,& ,#,8F,.!$#' $ < '^( @?A80C,$ P?BJ_PP&&&       
  231. XM   $RF0   (      .    P !(' L.P , 8.'\ #\  @9@P" (3 ,9@P+A\ 
  232. XM  (  " PIAX8C 8S0:&\9@P##P8"T3C,8&8: <&#$'#,& P&! " ($   !X9
  233. XMC S'\,#,9@P##PEC,9F,,#P,#,-&L&!H&!@$ P '^$"H9A8 #,$ P/%4_
  234. XMPP&&&          $RI0   0      6      '^% Z2@ , 85 @     @9@P$
  235. XM#,_@,9@P1@\   $'\$ PFA88S$8S 8&89@P##88"T1C,8&8; ,&#$&#,' P,
  236. XM! " ($   #89C S& ,#,9@P##PEC,9F,,!X,C,-&L& P&!@$ P '^ !P9
  237. XMB,0C,( P&"J_PP&&&          $R0@          6      "0U!:S  $ 0$
  238. XM @$  $! ) P(C,##,9@P1B,   "  (  @",8Q$9C 8"89@P;#88"T1C,8&X;
  239. XM"$&#$&#,+ P,! ! ($   &<9C S& ,#,9@P##8&#&9C,9F,,$,,C,-'\' 0,
  240. XM!@$ P '^  @9B,?C,(@P&%4_PP&&&          "\0@          6    P 
  241. XM"0U!:S  " @  @.  .! / P?B(##(= P1#8& P!  0 P1",8QH9#$8#89@P;
  242. XM#,8B$0C,8&X9S,&!H&"$1@P8A ! ($   &<9!D3#$,!,9@P##8&#&9A(9",,
  243. XM&$,C,&'<)@@,A@$ P '^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  244. XMW^_W^_W^ '^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  245. XMW^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  246. XMW^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  247. XMW^_W^_W^_W^_W^_W^_W^ '^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  248. XMW^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  249. XMW^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^             "J_
  250. XMPP&&&                  ?@                         $         
  251. XM             @                                              
  252. XM                  #,   ;        8 ,          #        '^    
  253. XM         %4_PP&'^                                           
  254. XM  (                                                         
  255. XM                              !X   >        \ <          #  
  256. XM      '^             "J_PP&'^                               
  257. XM                                                            
  258. XM                                                            
  259. X/                  '^
  260. Xend
  261. END_OF_FILE
  262. # end of 'font-16/Ucmr9x16ru'
  263. fi
  264. if test -f 'font-32/Ucmr9x16r' -a "${1}" != "-c" ; then 
  265.   echo shar: Will not clobber existing file \"'font-32/Ucmr9x16r'\"
  266. else
  267. echo shar: Extracting \"'font-32/Ucmr9x16r'\" \(3213 characters\)
  268. sed "s/^X//" >'font-32/Ucmr9x16r' <<'END_OF_FILE'
  269. Xbegin 644 cmr9x16r.fnt
  270. XM& D0!8               %4_PP&'^                               
  271. XM  $                   0                                     
  272. XM                                                            
  273. XM                  '^_@@/ P?G^?C,/"J_PP&'^& P !( #,   / P    
  274. XM     /@   P  D>C$& P!!         $& P.!P!!\'#\/ P       !X  P_
  275. XM T^'\_AH_QX'GN\"$YQX_#P^!T?GN]W.]WN?AX0!X$  "  X  '  '  X P#
  276. XM'                        \$'@ '^8@@9@P?C,8G^&%4_PP&&&& P/!( 
  277. XM#,   0@P         .@   P[@DEF\/ P" @        $/#P)"(#!X-CX8A8 
  278. XM  !  0#,, P9AL9#$8C89@P##(8"$<C,9F89",?C$8B$8C$1A 0 ($  $  8
  279. XM  #  ,@ 8 P## .           $         !@$ P9G^8 @9@P0C,,$R&"J_
  280. XMPP&&&(!(& P?@    0@P         .    P[@DDFH,@0$ 0$       () P9
  281. XMC,#! =B(8C,   "  (#,2 P9A$9C 8"(9@P##08#,<C,9F89B$6C$8B$-!H#
  282. XM! ( (.  &  8  #  ,@ 8   # &           $         !@$ P_'^$ @9
  283. XM@P0C,,$R/%4_PP&&&          #LI0   0      .    P[G^T&H,@@, 85
  284. XM @     (9@P9C,'! 8 08C,& P$  $ (A P9C$8S 8&(9@P##@8#,6C,9F89
  285. XMC &#$-"T.!H#! ( (5  &'P> \/!P_ \?!P'#<&',_ P^!T?#X_G<]V,]W>?
  286. XMA@$ PF'^( @?A8?C,& P?BJ_PP&&&          #TF0   (      /    P1
  287. XM!(\#0-  , 8. @     09@P!@8+!P> 0-#,& P('\" 0GA89C 8S0:& 9@P#
  288. XM#P8#,6C,9F89#P&#$-"T& P&! $ (D@  &89!L3#(,!,9@P##0&#N9A(9",-
  289. XMD(,#,8F,-#,3!@$ P '^_P@?A8?C,& P?E4_PP&&&          $RB0  '^ 
  290. XM     /    P1!(> 0&  , 8_@@     09@P! P3!(= 0'#,   0  ! PIA8?
  291. XM# 8SP>& ?@P##P8#,3C,?&8>!X&#$-#\& P&! $ ($    89C S&,,#,9@P#
  292. XM#@EC,9F,,& ,#,8F,.!$#' $ < '^( @?A80C,$ P?BJ_PP&&&       
  293. XM   $RF0   (      .    P !(' L.P , 8.'\ #\  @9@P" (3 ,9@P+A\ 
  294. XM  (  " PIAX8C 8S0:&\9@P##P8"T3C,8&8: <&#$'#,& P&! " ($   !X9
  295. XMC S'\,#,9@P##PEC,9F,,#P,#,-&L&!H&!@$ P '^$"H9A8 #,$ P/%4_
  296. XMPP&&&          $RI0   0      6      '^% Z2@ , 85 @     @9@P$
  297. XM#,_@,9@P1@\   $'\$ PFA88S$8S 8&89@P##88"T1C,8&8; ,&#$&#,' P,
  298. XM! " ($   #89C S& ,#,9@P##PEC,9F,,!X,C,-&L& P&!@$ P '^ !P9
  299. XMB,0C,( P&"J_PP&&&          $R0@          6      "0U!:S  $ 0$
  300. XM @$  $! ) P(C,##,9@P1B,   "  (  @",8Q$9C 8"89@P;#88"T1C,8&X;
  301. XM"$&#$&#,+ P,! ! ($   &<9C S& ,#,9@P##8&#&9C,9F,,$,,C,-'\' 0,
  302. XM!@$ P '^  @9B,?C,(@P&%4_PP&&&          "\0@          6    P 
  303. XM"0U!:S  " @  @.  .! / P?B(##(= P1#8& P!  0 P1",8QH9#$8#89@P;
  304. XM#,8B$0C,8&X9S,&!H&"$1@P8A ! ($   &<9!D3#$,!,9@P##8&#&9A(9",,
  305. XM&$,C,&'<)@@,A@$ P '^  @/'>?G^?AX/"J_PP&&&          #</      
  306. XM     7@   P "0>",2@ !!    .  ." &#\?AP'AP. P.!P& P     P.'>_
  307. XM@P^'\\!H_QX.'^_G.XAX\#\\RX/ P&"$[QX?AX AX$'^ #L6 X/AX> \_QX#
  308. XM'^/'N_PP>!\>%X'!^"&,]P@?@\$'@ '^             %4_PP&&&       
  309. XM                          $  ,0       &  $                  
  310. XM 0                                <                   '^    
  311. XM       ,   #        8 ,           @       '^             "J_
  312. XMPP&&&                  ?@                         $         
  313. XM             @                                              
  314. XM                  #,   ;        8 ,          #        '^    
  315. XM         %4_PP&'^                                           
  316. XM  (                                                         
  317. XM                              !X   >        \ <          #  
  318. XM      '^             "J_PP&'^                               
  319. XM                                                            
  320. XM                                                            
  321. X/                  '^
  322. Xend
  323. END_OF_FILE
  324. # end of 'font-32/Ucmr9x16r'
  325. fi
  326. if test -f 'font-32/Ucmr9x16ru' -a "${1}" != "-c" ; then 
  327.   echo shar: Will not clobber existing file \"'font-32/Ucmr9x16ru'\"
  328. else
  329. echo shar: Extracting \"'font-32/Ucmr9x16ru'\" \(3214 characters\)
  330. sed "s/^X//" >'font-32/Ucmr9x16ru' <<'END_OF_FILE'
  331. Xbegin 644 cmr9x16ru.fnt
  332. XM& D0!8               %4_PP&'^                               
  333. XM  $                   0                                     
  334. XM                                                            
  335. XM                  '^_@@/ P?G^?C,/"J_PP&'^& P !( #,   / P    
  336. XM     /@   P  D>C$& P!!         $& P.!P!!\'#\/ P       !X  P_
  337. XM T^'\_AH_QX'GN\"$YQX_#P^!T?GN]W.]WN?AX0!X$  "  X  '  '  X P#
  338. XM'                        \$'@ '^8@@9@P?C,8G^&%4_PP&&&& P/!( 
  339. XM#,   0@P         .@   P[@DEF\/ P" @        $/#P)"(#!X-CX8A8 
  340. XM  !  0#,, P9AL9#$8C89@P##(8"$<C,9F89",?C$8B$8C$1A 0 ($  $  8
  341. XM  #  ,@ 8 P## .           $         !@$ P9G^8 @9@P0C,,$R&"J_
  342. XMPP&&&(!(& P?@    0@P         .    P[@DDFH,@0$ 0$       () P9
  343. XMC,#! =B(8C,   "  (#,2 P9A$9C 8"(9@P##08#,<C,9F89B$6C$8B$-!H#
  344. XM! ( (.  &  8  #  ,@ 8   # &           $         !@$ P_'^$ @9
  345. XM@P0C,,$R/%4_PP&&&          #LI0   0      .    P[G^T&H,@@, 85
  346. XM @     (9@P9C,'! 8 08C,& P$  $ (A P9C$8S 8&(9@P##@8#,6C,9F89
  347. XMC &#$-"T.!H#! ( (5  &'P> \/!P_ \?!P'#<&',_ P^!T?#X_G<]V,]W>?
  348. XMA@$ PF'^( @?A8?C,& P?BJ_PP&&&          #TF0   (      /    P1
  349. XM!(\#0-  , 8. @     09@P!@8+!P> 0-#,& P('\" 0GA89C 8S0:& 9@P#
  350. XM#P8#,6C,9F89#P&#$-"T& P&! $ (D@  &89!L3#(,!,9@P##0&#N9A(9",-
  351. XMD(,#,8F,-#,3!@$ P '^_P@?A8?C,& P?E4_PP&&&          $RB0  '^ 
  352. XM     /    P1!(> 0&  , 8_@@     09@P! P3!(= 0'#,   0  ! PIA8?
  353. XM# 8SP>& ?@P##P8#,3C,?&8>!X&#$-#\& P&! $ ($    89C S&,,#,9@P#
  354. XM#@EC,9F,,& ,#,8F,.!$#' $ < '^( @?A80C,$ P?BJ_PP&&&       
  355. XM   $RF0   (      .    P !(' L.P , 8.'\ #\  @9@P" (3 ,9@P+A\ 
  356. XM  (  " PIAX8C 8S0:&\9@P##P8"T3C,8&8: <&#$'#,& P&! " ($   !X9
  357. XMC S'\,#,9@P##PEC,9F,,#P,#,-&L&!H&!@$ P '^$"H9A8 #,$ P/%4_
  358. XMPP&&&          $RI0   0      6      '^% Z2@ , 85 @     @9@P$
  359. XM#,_@,9@P1@\   $'\$ PFA88S$8S 8&89@P##88"T1C,8&8; ,&#$&#,' P,
  360. XM! " ($   #89C S& ,#,9@P##PEC,9F,,!X,C,-&L& P&!@$ P '^ !P9
  361. XMB,0C,( P&"J_PP&&&          $R0@          6      "0U!:S  $ 0$
  362. XM @$  $! ) P(C,##,9@P1B,   "  (  @",8Q$9C 8"89@P;#88"T1C,8&X;
  363. XM"$&#$&#,+ P,! ! ($   &<9C S& ,#,9@P##8&#&9C,9F,,$,,C,-'\' 0,
  364. XM!@$ P '^  @9B,?C,(@P&%4_PP&&&          "\0@          6    P 
  365. XM"0U!:S  " @  @.  .! / P?B(##(= P1#8& P!  0 P1",8QH9#$8#89@P;
  366. XM#,8B$0C,8&X9S,&!H&"$1@P8A ! ($   &<9!D3#$,!,9@P##8&#&9A(9",,
  367. XM&$,C,&'<)@@,A@$ P '^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  368. XMW^_W^_W^ '^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  369. XMW^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  370. XMW^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  371. XMW^_W^_W^_W^_W^_W^_W^ '^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  372. XMW^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_
  373. XMW^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^_W^             "J_
  374. XMPP&&&                  ?@                         $         
  375. XM             @                                              
  376. XM                  #,   ;        8 ,          #        '^    
  377. XM         %4_PP&'^                                           
  378. XM  (                                                         
  379. XM                              !X   >        \ <          #  
  380. XM      '^             "J_PP&'^                               
  381. XM                                                            
  382. XM                                                            
  383. X/                  '^
  384. Xend
  385. END_OF_FILE
  386. # end of 'font-32/Ucmr9x16ru'
  387. fi
  388. if test -f 'font-32/Ucour8x16r' -a "${1}" != "-c" ; then 
  389.   echo shar: Will not clobber existing file \"'font-32/Ucour8x16r'\"
  390. else
  391. echo shar: Extracting \"'font-32/Ucour8x16r'\" \(3040 characters\)
  392. sed "s/^X//" >'font-32/Ucour8x16r' <<'END_OF_FILE'
  393. Xbegin 644 cour8x16r.fnt
  394. XM& @0!88             _/XX.                                   
  395. XM                                                            
  396. XM                                                            
  397. XM           X.#@X.    '[^.#@              #@X.#@X. !^      @ 
  398. XM   $(        0                                              
  399. XM           \0#P                                       X(< #@
  400. XM            .#@X.#@   #\_C@X               X.#@X.#@ _  ()"0(
  401. XM,!@$"!        (<"#P<##X,?CP\   " $ \&                       
  402. XM            (" $   0 &  !@ . & (!& X         !         0" @ 
  403. XMD            #@X.#@X    ?OXX.               .#@X.#@X 'X ""0D
  404. XM/D@D!! ("      "(AA"(A0@,$)"1@  !  @8B0X?!I\?W\:=SX_<W"#AQQ^
  405. XM''PZ?^=WXW=W?B @! @ $  @  ( $0 @" 0@"          0        $ @(
  406. XM,I             X.#@X.    /S^.#@              #@X.#@X. #\  @D
  407. XM)$))( @0" @(    !"(H0@(4(" "0D(   @ $$)"""(F(B$A)B((!"(@0D(F
  408. XM(28B1DE"(D$B(D(@$ 04  @ (  " !  (   ( @         $        ! (
  409. XM"%K@            .#@X.#@   !^_C@X               X.#@X.#@ ?@ (
  410. XM)'Y 2B 0( 1K"     0B" (")"! !$)"&!@0  @"3A0B0B$@($(B" 0D($9B
  411. XM0B%"(D))0B))%"($(! $(@ $'"P:&AQ\&RPX/"8(DFP<;!MN/GQF=^-W=WX0
  412. XM" A,D            #@X.#@X    _/XX.               .#@X.#@X /P 
  413. XM"  D,#00 " $/@@    ((@@$'"0\7 0\1A@8('X$!%(4(D A)"1 (@@$*"!F
  414. XM4D(A0B(P"$(42104"" (!    "(R)B8F$"8R" 0D"&TR(C(F,4(0(B)!(B)$
  415. XM$ @( )             X.#@X.    '[^.#@              #@X.#@X. !^
  416. XM  @ ) P(*0 @!!Q_ 'X ""((" )$ F((0CH  $   @A2(CQ (3P\0#X(!#@@
  417. XM:E)"/D(\# A"%%4(%! @" 0    "(4)"0A!"(@@$* A)(D$A0B! $"(B210B
  418. XM"&  !@              .#@X.#@   #\_C@X               X.#@X.#@ 
  419. XM_    'X"%D8 ( 0V"    ! B"! "?@)""$("   @?@083"(B0"$D)$<B"$0D
  420. XM(%I*0B!") ((0A0V% @@( 0$    /B% 0GX00B((!#@(22)!(4(@/! B%%T(
  421. XM%! 0" @ !@           #@X.#@X    ?OXX.               .#@X.#@X
  422. XM 'X    D0BE$ " $(@@    0(@@@0@1"0A!"!   $  ( $ ^(4$A("!"(@A$
  423. XM)"%22D(@0B)""$(((A0(0B $!    $(A0$) $$(B" 0D"$DB02%"( (0(A0V
  424. XM%!0@$ @(  D            X.#@X.    /S^.#@              #@X.#@X
  425. XM. #\  @ )&))3@ 0"  (&  8("((0F($8F(00@P8& @ $  B02$B(B$@(B((
  426. XM1"(A0D9D(&0B8@@D""(B"$(@ @0   !&,B(F(A F(@@$(@A)(B(R)B!"$B8(
  427. XM(B((0A ("  )            .#@X.#@   !^_C@X               X.#@X
  428. XM.#@ ?@ ( "1<"3D $ @  !@ &" </GX\#CP\$#PP&!@$ " 8'.-^''Q_>!QW
  429. XM/CAS?^?B.'@X<UP^& @B=SY^( ($    .VP<&QQ\&G<^!&<^27<<+!IX? P;
  430. XM"")W"'X0" @ "0           #@X.#@X    _/XX.               .#@X
  431. XM.#@X /P     " 8   @0   (  !                ( @!             
  432. XM            $            " !! !_          (   0      " "    
  433. XM     !  $ @(  D            X.#@X.    '[^.#@              #@X
  434. XM.#@X. !^      @    $(   $                   $               
  435. XM             "P            \ #P            $   (       @ @  
  436. XM       0  X(<  &            .#@X.#@   #\_C@X               X
  437. XM.#@X.#@ _                "                   "              
  438. XM               #                            .   <       < < 
  439. XM        >                    #@X.#@X    ?OXX.               
  440. XM.#@X.#@X 'X                                                 
  441. XM                                                            
  442. X6                                
  443. Xend
  444. END_OF_FILE
  445. # end of 'font-32/Ucour8x16r'
  446. fi
  447. if test -f 'font-32/Ucour8x16rI' -a "${1}" != "-c" ; then 
  448.   echo shar: Will not clobber existing file \"'font-32/Ucour8x16rI'\"
  449. else
  450. echo shar: Extracting \"'font-32/Ucour8x16rI'\" \(3041 characters\)
  451. sed "s/^X//" >'font-32/Ucour8x16rI' <<'END_OF_FILE'
  452. Xbegin 644 cour8x16rI.fnt
  453. XM& @0!88 ____________ P''Q________________________P  ________
  454. XM____________________________________________________________
  455. XM____________________________________________________________
  456. XM______\  /_'Q\?'Q____X$!Q\?______________\?'Q\?'Q_]^ /____?_
  457. XM___[W________O______________________________________________
  458. XM___________#O\/_______________________________________'WC_\?
  459. XM________  #_Q\?'Q\?___\# <?'_______________'Q\?'Q\?__ #WV]OW
  460. XMS^?[]^________WC]\/C\\'S@</#___]_[_#Y_______________________
  461. XM____________W]_[___O_Y__^?_Q_Y_W^Y_'_________^_________O]_?_
  462. XM;________P  _\?'Q\?'____@0''Q_______________Q\?'Q\?'_WX ]]O;
  463. XMP;?;^^_W]______]W>>]W>O?S[V]N?__^__?G=O'@^6#@(#EB,' C(]\>..!
  464. XMXX/%@!B('(B(@=_?^_?_[__?__W_[O_?]_O?]__________O________[_?W
  465. XMS6________\  /_'Q\?'Q____P,!Q\?______________\?'Q\?'Q__\ /?;
  466. XMV[VVW_?O]_?W____^]W7O?WKW]_]O;W___?_[[V]]]W9W=[>V=WW^]W?O;W9
  467. XMWMG=N;:]W;[=W;W?[_OK__?_W__]_^__W___W_?_________[________^_W
  468. XM]Z4?________  #_Q\?'Q\?___^! <?'_______________'Q\?'Q\?_?@#W
  469. XMVX&_M=_OW_N4]_____O=]_W]V]^_^[V]Y^?O__?]L>O=O=[?W[W=]_O;W[F=
  470. XMO=Z]W;VVO=VVZ]W[W^_[W?_[X]/EY>.#Y-/'P]GW;9/CD^21P8.9B!R(B('O
  471. XM]_>S;________P  _\?'Q\?'____ P''Q_______________Q\?'Q\?'__P 
  472. XM]__;S\OO_]_[P??____WW??[X]O#H_O#N>?GWX'[^ZWKW;_>V]N_W??[U]^9
  473. XMK;W>O=W/][WKMNOK]]_W^____]W-V=G9[]G-]_O;]Y+-W<W9SKWOW=V^W=V[
  474. XM[_?W_V________\  /_'Q\?'Q____X$!Q\?______________\?'Q\?'Q_]^
  475. XM /?_V_/WUO_?^^. _X'_]]WW]_V[_9WWO<7__[___?>MW<._WL/#O\'W^\??
  476. XME:V]P;W#\_>]ZZKWZ^_?]_O____]WKV]O>^]W??[U_>VW;[>O=^_[]W=MNO=
  477. XM]Y__^?__________  #_Q\?'Q\?___\# <?'_______________'Q\?'Q\?_
  478. XM_ #__X']Z;G_W_O)]____^_=]^_]@?V]][W]___?@?OGL]W=O][;V[C=][O;
  479. XMWZ6UO=^]V_WWO>O)Z_??W_O[____P=Z_O8'OO=WW^\?WMMV^WKW?P^_=ZZ+W
  480. XMZ^_O]_?_^?_______P  _\?'Q\?'____@0''Q_______________Q\?'Q\?'
  481. XM_WX ___;O=:[_]_[W??____OW???O?N]O>^]^___[__W_[_!WK[>W]^]W?>[
  482. XMV]ZMM;W?O=V]][WWW>OWO=_[^____[W>O[V_[[W=]_O;][;=OMZ]W_WOW>O)
  483. XMZ^O?[_?W__;_______\  /_'Q\?'Q____P,!Q\?______________\?'Q\?'
  484. XMQ__\ /?_VYVVL?_O]__WY__GW]WWO9W[G9WOO?/GY_?_[__=OM[=W=[?W=WW
  485. XMN]W>O;F;WYO=G??;]]W=][W?_?O___^YS=W9W>_9W??[W?>VW=W-V=^][=GW
  486. XMW=WWO>_W]__V________  #_Q\?'Q\?___^! <?'_______________'Q\?'
  487. XMQ\?_?@#W_]NC]L;_[_?__^?_Y]_CP8'#\</#[\//Y^?[_]_GXQR!XX. A^.(
  488. XMP<>,@!@=QX?'C*/!Y_?=B,&!W_W[____Q)/CY..#Y8C!^YC!MHCCT^6'@_/D
  489. XM]]V(]X'O]_?_]O_______P  _\?'Q\?'____ P''Q_______________Q\?'
  490. XMQ\?'__P ____]_G___?O___W__^________________W_?^_____________
  491. XM____________[____________]_^^_^ __________W___O______]_]____
  492. XM_____^__[_?W__;_______\  /_'Q\?'Q____X$!Q\?______________\?'
  493. XMQ\?'Q_]^ /____?____[W___[___________________[_______________
  494. XM_____________]/____________#_\/____________[___W_______?_?__
  495. XM_______O__'WC__Y________  #_Q\?'Q\?___\# <?'_______________'
  496. XMQ\?'Q\?__ #______________]___________________]______________
  497. XM_______________\____________________________Q___C_______C_C_
  498. XM________A________________P  _\?'Q\?'____@0''Q_______________
  499. XMQ\?'Q\?'_WX ________________________________________________
  500. XM____________________________________________________________
  501. X6__________________________\  /__
  502. Xend
  503. END_OF_FILE
  504. # end of 'font-32/Ucour8x16rI'
  505. fi
  506. if test -f 'font-32/Ucour8x16ru' -a "${1}" != "-c" ; then 
  507.   echo shar: Will not clobber existing file \"'font-32/Ucour8x16ru'\"
  508. else
  509. echo shar: Extracting \"'font-32/Ucour8x16ru'\" \(3041 characters\)
  510. sed "s/^X//" >'font-32/Ucour8x16ru' <<'END_OF_FILE'
  511. Xbegin 644 cour8x16ru.fnt
  512. XM& @0!88             _/XX.                                   
  513. XM                                                            
  514. XM                                                            
  515. XM           X.#@X.    '[^.#@              #@X.#@X. !^      @ 
  516. XM   $(        0                                              
  517. XM           \0#P                                       X(< #@
  518. XM            .#@X.#@   #\_C@X               X.#@X.#@ _  ()"0(
  519. XM,!@$"!        (<"#P<##X,?CP\   " $ \&                       
  520. XM            (" $   0 &  !@ . & (!& X         !         0" @ 
  521. XMD            #@X.#@X    ?OXX.               .#@X.#@X 'X ""0D
  522. XM/D@D!! ("      "(AA"(A0@,$)"1@  !  @8B0X?!I\?W\:=SX_<W"#AQQ^
  523. XM''PZ?^=WXW=W?B @! @ $  @  ( $0 @" 0@"          0        $ @(
  524. XM,I             X.#@X.    /S^.#@              #@X.#@X. #\  @D
  525. XM)$))( @0" @(    !"(H0@(4(" "0D(   @ $$)"""(F(B$A)B((!"(@0D(F
  526. XM(28B1DE"(D$B(D(@$ 04  @ (  " !  (   ( @         $        ! (
  527. XM"%K@            .#@X.#@   !^_C@X               X.#@X.#@ ?@ (
  528. XM)'Y 2B 0( 1K"     0B" (")"! !$)"&!@0  @"3A0B0B$@($(B" 0D($9B
  529. XM0B%"(D))0B))%"($(! $(@ $'"P:&AQ\&RPX/"8(DFP<;!MN/GQF=^-W=WX0
  530. XM" A,D            #@X.#@X    _/XX.               .#@X.#@X /P 
  531. XM"  D,#00 " $/@@    ((@@$'"0\7 0\1A@8('X$!%(4(D A)"1 (@@$*"!F
  532. XM4D(A0B(P"$(42104"" (!    "(R)B8F$"8R" 0D"&TR(C(F,4(0(B)!(B)$
  533. XM$ @( )             X.#@X.    '[^.#@              #@X.#@X. !^
  534. XM  @ ) P(*0 @!!Q_ 'X ""((" )$ F((0CH  $   @A2(CQ (3P\0#X(!#@@
  535. XM:E)"/D(\# A"%%4(%! @" 0    "(4)"0A!"(@@$* A)(D$A0B! $"(B210B
  536. XM"&  !@              .#@X.#@   #\_C@X               X.#@X.#@ 
  537. XM_    'X"%D8 ( 0V"    ! B"! "?@)""$("   @?@083"(B0"$D)$<B"$0D
  538. XM(%I*0B!") ((0A0V% @@( 0$    /B% 0GX00B((!#@(22)!(4(@/! B%%T(
  539. XM%! 0" @ !@           #@X.#@X    ?OXX.               .#@X.#@X
  540. XM 'X    D0BE$ " $(@@    0(@@@0@1"0A!"!   $  ( $ ^(4$A("!"(@A$
  541. XM)"%22D(@0B)""$(((A0(0B $!    $(A0$) $$(B" 0D"$DB02%"( (0(A0V
  542. XM%!0@$ @(  D            X.#@X.    /S^.#@              #@X.#@X
  543. XM. #\  @ )&))3@ 0"  (&  8("((0F($8F(00@P8& @ $  B02$B(B$@(B((
  544. XM1"(A0D9D(&0B8@@D""(B"$(@ @0   !&,B(F(A F(@@$(@A)(B(R)B!"$B8(
  545. XM(B((0A ("  )            .#@X.#@   !^_C@X               X.#@X
  546. XM.#@ ?@ ( "1<"3D $ @  !@ &" </GX\#CP\$#PP&!@$ " 8'.-^''Q_>!QW
  547. XM/CAS?^?B.'@X<UP^& @B=SY^( ($    .VP<&QQ\&G<^!&<^27<<+!IX? P;
  548. XM"")W"'X0" @ "0          ?W]_?W]_?W]___]_?W]_?W]_?W]_?W]_?W]_
  549. XM?W]_?_\ ?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_
  550. XM?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_
  551. XM?W]_?W]_?W]_?W]_?W]_?W\    X.#@X.    '[^.#@              #@X
  552. XM.#@X. !^      @    $(   $                   $               
  553. XM             "P            \ #P            $   (       @ @  
  554. XM       0  X(<  &            .#@X.#@   #\_C@X               X
  555. XM.#@X.#@ _                "                   "              
  556. XM               #                            .   <       < < 
  557. XM        >                    #@X.#@X    ?OXX.               
  558. XM.#@X.#@X 'X                                                 
  559. XM                                                            
  560. X6                                
  561. Xend
  562. END_OF_FILE
  563. # end of 'font-32/Ucour8x16ru'
  564. fi
  565. if test -f 'font-32/Ugal9x16rI' -a "${1}" != "-c" ; then 
  566.   echo shar: Will not clobber existing file \"'font-32/Ugal9x16rI'\"
  567. else
  568. echo shar: Extracting \"'font-32/Ugal9x16rI'\" \(3040 characters\)
  569. sed "s/^X//" >'font-32/Ugal9x16rI' <<'END_OF_FILE'
  570. Xbegin 644 gal9x16rI.fnt
  571. XM& @0!88 ____________ P''Q________________________P  ________
  572. XM____________________________________________________________
  573. XM____________________________________________________________
  574. XM______\  /_'Q\?'Q____X$!Q\?______________\?'Q\?'Q_]^ /___^__
  575. XM___[W________?________________W_O___________________________
  576. XM___________#?\/_______________________________________'OC_\?
  577. XM________  #_Q\?'Q\?___\# <?'_______________'Q\?'Q\?__ #OV^W'
  578. XMF\_W]^________O#]\/#^X'#@</#___[_]_#Y^>'PX>!@<.]@^&]OWV]PX/#
  579. XM@\,!O;U]O7V!W[_[___?_[___?_S_[_W^[_'_________^_________O[_?_
  580. XM;________P  _\?'Q\?'____@0''Q_______________Q\?'Q\?'_WX []OM
  581. XMJVNW]^_W[______[O>>]O?._O;V]O?__]__OO=OGN[V[O[^]O>_[N[]]G;V]
  582. XMO;V][[V]?;U]_=^_^^?_W_^___W_[?^_]_N_]__________O________[^_W
  583. XMS6________\  /_'Q\?'Q____P,!Q\?______________\?'Q\?'Q__\ ._;
  584. XM[:MGM^_O]ZOO____][W7O;WKO[_]O;W__^__][V]Y[N]O;^_O;WO^[>_.9V]
  585. XMO;V]O>^]O7W;N_W?W_O;_^__O__]_^__O___O_?_________[________^_O
  586. XM]Z4?________  #_Q\?'Q\?___^! <?'_______________'Q\?'Q\?_?@#O
  587. XMVX"OE\_?W_O'[_____>Y]_W]V[^_^[V]Y^??@?O]L=N[O[V_O[^][_NOOSFM
  588. XMO;V]O=_OO;UMV[O[W]_[O?_WQZ/#Q</OQ:/'X[OW$Z/#H\6CPX.]O7V]O8'O
  589. XM[_>S;________P  _\?'Q\?'____ P''Q_______________Q\?'Q\?'__P 
  590. XM[__;S^_?_]_[Q^_____OM??[X[N#@_O#O>?GO__]^ZW;A[^]@X._@>_[G[]5
  591. XMK;V]O8/G[[W;J^?7]]_O^____[N=O;F]@[F=]_NW]VV=O9VYG;WOO;U]O;W[
  592. XM[^_W_V________\  /_'Q\?'Q____X$!Q\?______________\?'Q\?'Q_]^
  593. XM .__V^?OK?_?^ZL!_X'_[ZWW]_U[_;WWO<'__]__^_>MV[N_O;^_L;WO^X^_
  594. XM5;6]@[VW^^^]VZOG[^_?[_O____[O;^]O>^]O??[K_=MO;V]O;^_[[V];=O=
  595. XM]Y__^?__________  #_Q\?'Q\?___\# <?'_______________'Q\?'Q\?_
  596. XM_ #O_P'KTW/_W_OO[____]^=]^_] ?V]][W]___O__?WL[V]O[V_O[V][_NG
  597. XMOVVUO;^]N_WOO=NKV^_?W_?[____P[V_O8'OO;WW^X_W;;V]O;V_P^^]VVWG
  598. XMV^_O[_?_^?_______P  _\?'Q\?'____@0''Q_______________Q\?'Q\?'
  599. XM_WX __^WJ\UW_]_[_^_____?O???O?N]O>^]_?__]X'O_[^!O;V]O[^]O>^[
  600. XML[]MN;V_O;N][[WGU]OOO]_W^____[N]O[V_[[V]]_NW]VV]O;V]O_WOO=MM
  601. XMV^O?[^_W__;_______\  /_'Q\?'Q____P,!Q\?______________\?'Q\?'
  602. XMQ__\ /__MZNM9__O]__OY__GO[WWO[W[O;WOO;WGY_O_W__=O;V]N[^_N;WO
  603. XMN[F_?;F]O[V]O>^]Y]>][[_?^_O___^[G;VYO>^YO??[N_=MO;V=N;^][;GG
  604. XM;;WKO^_O]__V________  #_Q\?'Q\?___^! <?'_______________'Q\?'
  605. XMQ\?_?@#O_[?'LYG_[_?__^?_Y[_#P8'#^\/#[\/#Y^?]_[_WX[V#PX>!O\6]
  606. XM@\>]@7V]P[_#O</OP^?7O>^!W_O[____Q:/#Q</OQ;WW^[WW;;W#H\6_P_/%
  607. XMYY.]]X'O[_?_]O_______P  _\?'Q\?'____ P''Q_______________Q\?'
  608. XMQ\?'__P ____[_____?O___W__]________________W________________
  609. XM____________[____________]_]^_\!__________W___O______[_]____
  610. XM______?_[^_W__;_______\  /_'Q\?'Q____X$!Q\?______________\?'
  611. XMQ\?'Q_]^ /_________[W___[___________________[_______________
  612. XM______________?____________#_\/___________^]__^[______^__?__
  613. XM_______O__'OC__Y________  #_Q\?'Q\?___\# <?'_______________'
  614. XMQ\?'Q\?__ #______________]___________________]______________
  615. XM_______________Y____________________________P___Q_______O_W_
  616. XM________K________________P  _\?'Q\?'____@0''Q_______________
  617. XMQ\?'Q\?'_WX ________________________________________________
  618. XM_________________________________________________________[_]
  619. X6_________]________________\  /__
  620. Xend
  621. END_OF_FILE
  622. # end of 'font-32/Ugal9x16rI'
  623. fi
  624. if test -f 'font-32/User8x16rI' -a "${1}" != "-c" ; then 
  625.   echo shar: Will not clobber existing file \"'font-32/User8x16rI'\"
  626. else
  627. echo shar: Extracting \"'font-32/User8x16rI'\" \(3040 characters\)
  628. sed "s/^X//" >'font-32/User8x16rI' <<'END_OF_FILE'
  629. Xbegin 644 ser8x16rI.fnt
  630. XM& @0!88 ____________ P''Q________________________P  ________
  631. XM____________________________________________________________
  632. XM____________________________________________________________
  633. XM______\  /_'Q\?'Q____X$!Q\?______________\?'Q\?'Q_]^ /___^__
  634. XM___[W________O_____W__/_____________________________________
  635. XM___________#O\/_______________________________________'WC_\?
  636. XM________  #_Q\?'Q\?___\# <?'_______________'Q\?'Q\?__ #WV^WO
  637. XMS^?[]^________WC]\/C]\'O@</#___]_[_#\_>#Y8. @.6(P>",CWPXXX'C
  638. XM@\6 &(@<B(B!W]_[___O_Y__^?_S_Y_W^Y_'_________^_________O]_?_
  639. XM;________P  _\?'Q\?'____@0''Q_______________Q\?'Q\?'_WX ]]OM
  640. XMQ;?;^^_W]______]W>>YV>_?W[VYN?__^__?G<WWV=G=WM[9W??[W=^]G=G<
  641. XMV=VYMKW=OMW=N]_?^_?_[__?__W_[?_?]_O?]__________O________[_?W
  642. XMS6________\  /_'Q\?'Q____P,!Q\?______________\?'Q\?'Q__\ /?;
  643. XM[;FVW_?O]_?W____^]W7O?WOW]_]O;W___?_[[W>Z]V]WM_?O=WW^]O?N9V]
  644. XMWKW=O?>]W;;KW?O?[_OK__?_W__]_^__W___W_?_________[________^_W
  645. XM]Z4?________  #_Q\?'Q\?___^! <?'_______________'Q\?'Q\?_?@#W
  646. XMVX"]M=_OW_NB]_____O=]_W]V]^_^YV]Y^?O__?]N.O=O][?W[_=]_O7WYFM
  647. XMO=Z]W9_WO=VVZ^OWW^_[W?_[X]'EY>.#XM/'X]GW;9/CD>23P8.9B!B(B('O
  648. XM]_>S;________P  _\?'Q\?'____ P''Q_______________Q\?'Q\?'__P 
  649. XM]__;S\OO_]_[P??____WW??[X]O#H_O#N>?GWX'[^[;KP[_>P<._P??[Q]^5
  650. XMK;W=O</'][WKM??K]]_W^____]G,V=G9[\W-]_O;]Y+-V<S9S;WOW=V]W=V[
  651. XM[_?W_V________\  /_'Q\?'Q____X$!Q\?______________\?'Q\?'Q_]^
  652. XM /?_V_/WUO_?^^. _X'_]]WW]_F[^9WWN<7__[___?>VW=V_WM_?N-WW^]O?
  653. XMI;6]T[W7\_>]ZZ7W]^_?]_O____]WKV]O>_=W??[U_>VW;W>O=^_[]W=I>O=
  654. XM]Y__^?__________  #_Q\?'Q\?___\# <?'_______________'Q\?'Q\?_
  655. XM_ #__P']Z;G_W_OK]____^_=]^_]@?V]][W]___?@?OGN=W>O][?W[W=]_O;
  656. XMWZVUO=^]V_GWO>O5Z_?OW_O[____P=Z_O8'OV=WW^\?WMMV]WKW?P^_=ZZ7W
  657. XMZ^_O]_?_^?_______P  _\?'Q\?'____@0''Q_______________Q\?'Q\?'
  658. XM_WX __^WO=:[_]_[W??____OW???O?N]O>^]^___[__W_]_!WKW>W]^]W?>[
  659. XMW=^]N;W?O=N]][WWV^OWW]_[^____[W>O[V_[\/=]_O;][;=O=Z]W_WOW>O;
  660. XMZ^O?[_?W__;_______\  /_'Q\?'Q____P,!Q\?______________\?'Q\?'
  661. XMQ__\ /?_MYVVL?_O]__WY__GW]WWO9W[G9WOG?OGY_?_[__.OMR;W=[?F=WW
  662. XMF]W>O;F;WYO=G?>;]]O=]]W?_?O___^YS9V9G>^_W??[W?>VW9O-F=^][=GW
  663. XMV]WSO>_W]__V________  #_Q\?'Q\?___^! <?'_______________'Q\?'
  664. XMQ\?_?@#W_[>C]L;_[_?__^?_Y]_CP8'#^\/#[\/WY^?[_]_G\9R!QX. C\6(
  665. XMP<>,@!@=QX_'C*/CQ_?;B..!W_W[____Q-/#Q,/'P8S!^YC!MHS'T\6/@_/D
  666. XM]]N(]X'O]_?_]O_______P  _\?'Q\?'____ P''Q_______________Q\?'
  667. XMQ\?'__P ____]_G___?O___W__^_____________S__W_?^_____________
  668. XM____________[____________]_^^_^ _________Y[___O______]_]____
  669. XM______?_[_?W__;_______\  /_'Q\?'Q____X$!Q\?______________\?'
  670. XMQ\?'Q_]^ /____?____[W___[___________________[_______________
  671. XM______________?____________#_\/___________^\__^W_______?_?__
  672. XM_______O__'WC__Y________  #_Q\?'Q\?___\# <?'_______________'
  673. XMQ\?'Q\?__ #______________]___________________]______________
  674. XM_______________Y____________________________P?__S_______C_C_
  675. XM________G________________P  _\?'Q\?'____@0''Q_______________
  676. XMQ\?'Q\?'_WX ________________________________________________
  677. XM____________________________________________________________
  678. X6__________________________\  /__
  679. Xend
  680. END_OF_FILE
  681. # end of 'font-32/User8x16rI'
  682. fi
  683. if test -f 'font-32/User8x16ru' -a "${1}" != "-c" ; then 
  684.   echo shar: Will not clobber existing file \"'font-32/User8x16ru'\"
  685. else
  686. echo shar: Extracting \"'font-32/User8x16ru'\" \(3040 characters\)
  687. sed "s/^X//" >'font-32/User8x16ru' <<'END_OF_FILE'
  688. Xbegin 644 ser8x16ru.fnt
  689. XM& @0!88             _/XX.                                   
  690. XM                                                            
  691. XM                                                            
  692. XM           X.#@X.    '[^.#@              #@X.#@X. !^     !  
  693. XM   $(        0     (  P                                     
  694. XM           \0#P                                       X(< #@
  695. XM            .#@X.#@   #\_C@X               X.#@X.#@ _  ()!(0
  696. XM,!@$"!        (<"#P<"#X0?CP\   " $ \# A\&GQ_?QIW/A]S<(/'''X<
  697. XM?#I_YW?C=W=^(" $   0 &  !@ , & (!& X         !         0" @ 
  698. XMD            #@X.#@X    ?OXX.               .#@X.#@X 'X ""02
  699. XM.D@D!! ("      "(AA&)A @($)&1@  !  @8C(()B8B(2$F(@@$(B!"8B8C
  700. XM)B)&24(B02(B1" @! @ $  @  ( $@ @" 0@"          0        $ @(
  701. XM,I             X.#@X.    /S^.#@              #@X.#@X. #\  @D
  702. XM$D9)( @0" @(    !"(H0@(0(" "0D(   @ $$(A%")"(2 @0B((!"0@1F)"
  703. XM(4(B0@A"(DD4(@0@$ 04  @ (  " !  (   ( @         $        ! (
  704. XM"%K@            .#@X.#@   !^_C@X               X.#@X.#@ ?@ (
  705. XM)']"2B 0( 1="     0B" (")"! !&)"&!@0  @"1Q0B0"$@($ B" 0H(&92
  706. XM0B%"(F (0B))%!0((! $(@ $'"X:&AQ\'2PX'"8(DFP<;AML/GQF=^=W=WX0
  707. XM" A,D            #@X.#@X    _/XX.               .#@X.#@X /P 
  708. XM"  D,#00 " $/@@    ((@@$'"0\7 0\1A@8('X$!$D4/$ A/CQ /@@$."!J
  709. XM4D(B0CPX"$(42@@4"" (!    "8S)B8F$#(R" 0D"&TR)C,F,D(0(B)"(B)$
  710. XM$ @( )             X.#@X.    '[^.#@              #@X.#@X. !^
  711. XM  @ ) P(*0 @!!Q_ 'X ""((" 9$!F((1CH  $   @A)(B) (2 @1R((!"0@
  712. XM6DI"+$(H# A"%%H("! @" 0    "(4)"0A B(@@$* A)(D(A0B! $"(B6A0B
  713. XM"&  !@              .#@X.#@   #\_C@X               X.#@X.#@ 
  714. XM_    /X"%D8 ( 04"    ! B"! "?@)""$("   @?@081B(A0"$@($(B" 0D
  715. XM(%)*0B!") 8(0A0J% @0( 0$    /B% 0GX0)B((!#@(22)"(4(@/! B%%H(
  716. XM%! 0" @ !@           #@X.#@X    ?OXX.               .#@X.#@X
  717. XM 'X   !(0BE$ " $(@@    0(@@@0@1"0A!"!   $  ( " ^(4(A("!"(@A$
  718. XM(B!"1D(@0B1""$(()!0((" $!    $(A0$) $#PB" 0D"$DB0B%"( (0(A0D
  719. XM%!0@$ @(  D            X.#@X.    /S^.#@              #@X.#@X
  720. XM. #\  @ 2&))3@ 0"  (&  8("((0F($8F(08@08& @ $  Q02-D(B$@9B((
  721. XM9"(A0D9D(&0B8@AD""0B""(@ @0   !&,F)F8A! (@@$(@A)(F0R9B!"$B8(
  722. XM)"(,0A ("  )            .#@X.#@   !^_C@X               X.#@X
  723. XM.#@ ?@ ( $A<"3D $ @  !@ &" </GX\!#P\$#P(&!@$ " 8#F-^.'Q_<#IW
  724. XM/CAS?^?B.' X<UP<. @D=QQ^( ($    .RP\.SPX/G,^!&<^27,X+#IP? P;
  725. XM""1W"'X0" @ "0          ?W]_?W]_?W]___]_?W]_?W]_?W]_?W]_?W]_
  726. XM?W]_?_\ ?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_
  727. XM?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_?W]_
  728. XM?W]_?W]_?W]_?W]_?W]_?W\    X.#@X.    '[^.#@              #@X
  729. XM.#@X. !^      @    $(   $                   $               
  730. XM              @            \ #P           !#  !(       @ @  
  731. XM       0  X(<  &            .#@X.#@   #\_C@X               X
  732. XM.#@X.#@ _                "                   "              
  733. XM               &                            /@  ,       < < 
  734. XM        8                    #@X.#@X    ?OXX.               
  735. XM.#@X.#@X 'X                                                 
  736. XM                                                            
  737. X6                                
  738. Xend
  739. END_OF_FILE
  740. # end of 'font-32/User8x16ru'
  741. fi
  742. if test -f 'src/bitmapread.c' -a "${1}" != "-c" ; then 
  743.   echo shar: Will not clobber existing file \"'src/bitmapread.c'\"
  744. else
  745. echo shar: Extracting \"'src/bitmapread.c'\" \(3131 characters\)
  746. sed "s/^X//" >'src/bitmapread.c' <<'END_OF_FILE'
  747. X/*                        Copyright (c) 1988 Bellcore
  748. X *                            All Rights Reserved
  749. X *       Permission is granted to copy or use this program, EXCEPT that it
  750. X *       may not be sold for profit, the copyright notice must be reproduced
  751. X *       on copies, and credit should be given to Bellcore where it is due.
  752. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  753. X */
  754. X/*    $Header: bitmapread.c,v 4.6 88/08/24 15:55:15 bianchi Exp $
  755. X    $Source: /tmp/mgrsrc/src/RCS/bitmapread.c,v $
  756. X*/
  757. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/bitmapread.c,v $$Revision: 4.6 $";
  758. X
  759. X#include    "dump.h"
  760. X#include    "bitmap.h"
  761. X#include    <stdio.h>
  762. X
  763. X
  764. X/*
  765. X    Read a bitmap.
  766. X    Given an open FILE pointer to an file containing a bitmap,
  767. X    read the header, malloc() a bitmap, and return the pointer to the
  768. X    bitmap.
  769. X*/
  770. XBITMAP *
  771. Xbitmapread( fp )
  772. Xregister FILE    *fp;
  773. X{
  774. X    BITMAP        *bp = 0;
  775. X    register char    *datap;
  776. X    int        h, w, d;    /* height, width, depth of bitmap */
  777. X    int        sizefile1;    /* the size of 1 line of the bitmap
  778. X                    as stored in a file, in bytes */
  779. X    int        sizemem1;    /* the size of 1 line of the bitmap
  780. X                    as stored in memory, in bytes */
  781. X    long        size1diff = 0;    /* if the file padding is greater than
  782. X                    the memory padding, the difference in
  783. X                    bytes */
  784. X
  785. X    if( bitmaphead( fp, &w , &h, &d, &sizefile1 ) ) {
  786. X        sizemem1 = BIT_Size(w, 1, d);
  787. X        if( sizefile1 > sizemem1 ) {
  788. X            size1diff = sizefile1 - sizemem1;
  789. X            sizefile1 = sizemem1;
  790. X        }
  791. X        if( !(bp = bit_alloc(w, h, NULL_DATA, d)) )
  792. X            return  0;
  793. X        datap = (char *)BIT_DATA(bp);
  794. X
  795. X        /*    The bytes of the bitmap data in the file may have
  796. X            different alignments than the bitmap data in memory.
  797. X            We read one line at a time in such a way as to get
  798. X            the memory alignment needed.
  799. X        */
  800. X        while( h-- > 0 ) {
  801. X            if( fread( datap, sizefile1, 1, fp ) != 1 ) {
  802. X                free( (char *)bp );
  803. X                return  0;
  804. X            }
  805. X            if( size1diff ) {
  806. X                fseek( fp, size1diff, 1 );
  807. X            }
  808. X            datap += sizemem1;
  809. X        }
  810. X    }
  811. X    return  bp;
  812. X}
  813. X
  814. X
  815. X/*
  816. X    Write a bitmap.
  817. X    Given an open FILE pointer to an file and a pointer to a bitmap,
  818. X    write the header and the bitmap.  Return 0 on failure, positive on
  819. X    success.
  820. X*/
  821. Xint
  822. Xbitmapwrite( fp, bp, flag )
  823. Xregister FILE    *fp;
  824. XBITMAP        *bp;
  825. Xint flag;            /* 1->8 bit (new), 0->16 bit (old) */
  826. X
  827. X{
  828. X    register char    *datap;
  829. X    register int    w, h, d;
  830. X    struct b_header    head;
  831. X    struct old_b_header    old_head;
  832. X
  833. X    int        sizefile1;    /* the size of 1 line of the bitmap
  834. X                    as stored in a file, in bytes */
  835. X    int        sizemem1;    /* the size of 1 line of the bitmap
  836. X                    as stored in memory, in bytes */
  837. X
  838. X    w = BIT_WIDE(bp);
  839. X    h = BIT_HIGH(bp);
  840. X    d = BIT_DEPTH(bp);
  841. X    switch(flag) {
  842. X    case NEW_BHDR:
  843. X        B_PUTHDR8( &head, w, h, d );
  844. X        sizefile1 = B_SIZE8(w, 1, d);
  845. X       if( fwrite( (char *)&head, sizeof head, 1, fp ) != 1 )
  846. X           return  0;
  847. X        break;
  848. X    case OLD_BHDR:
  849. X        B_PUTOLDHDR( &old_head, w, h );
  850. X        sizefile1 = B_SIZE16(w, 1, d);
  851. X       if( fwrite( (char *)&old_head, sizeof old_head, 1, fp ) != 1 )
  852. X           return  0;
  853. X        break;
  854. X        }
  855. X
  856. X    sizemem1 = BIT_Size(w, 1, d);
  857. X    datap = (char *)BIT_DATA(bp);
  858. X    while( h-- > 0 ) {
  859. X        if( fwrite( datap, sizefile1, 1, fp ) != 1 )
  860. X            return  0;
  861. X        datap += sizemem1;
  862. X    }
  863. X    return(1);
  864. X}
  865. END_OF_FILE
  866. # end of 'src/bitmapread.c'
  867. fi
  868. if test -f 'src/get_font.c' -a "${1}" != "-c" ; then 
  869.   echo shar: Will not clobber existing file \"'src/get_font.c'\"
  870. else
  871. echo shar: Extracting \"'src/get_font.c'\" \(3069 characters\)
  872. sed "s/^X//" >'src/get_font.c' <<'END_OF_FILE'
  873. X/*                        Copyright (c) 1987 Bellcore
  874. X *                            All Rights Reserved
  875. X *       Permission is granted to copy or use this program, EXCEPT that it
  876. X *       may not be sold for profit, the copyright notice must be reproduced
  877. X *       on copies, and credit should be given to Bellcore where it is due.
  878. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  879. X */
  880. X/*    $Header: get_font.c,v 4.1 88/06/21 13:22:07 bianchi Exp $
  881. X    $Source: /tmp/mgrsrc/src/RCS/get_font.c,v $
  882. X*/
  883. Xstatic char    RCSid_[] = "$Source: /tmp/mgrsrc/src/RCS/get_font.c,v $$Revision: 4.1 $";
  884. X
  885. X/* LRU routines for font management */
  886. X
  887. X#include <stdio.h>
  888. X#include "bitmap.h"
  889. X#include "font.h"
  890. X
  891. X#define MAX_FONT        20
  892. X#ifndef NULL
  893. X#define NULL        ((char *) 0)
  894. X#endif
  895. X#define NULL_LIST    ((struct list *) 0)
  896. X
  897. Xstatic struct list {
  898. X   struct list *next, *prev;        /* next or previous list item */
  899. X   struct font *font;            /* pointer to font structure */
  900. X   char *name;                /* font name */
  901. X   };
  902. X
  903. Xstruct list *list_top = NULL_LIST;
  904. X
  905. X/* insert an element at the top of the list */
  906. X
  907. Xinsert(ptr)
  908. Xregister struct list *ptr;
  909. X   {
  910. X   ptr->next = list_top;
  911. X   ptr->prev = NULL_LIST;
  912. X   if (ptr->next != NULL_LIST)
  913. X      ptr->next->prev = ptr;
  914. X   list_top = ptr;
  915. X   }
  916. X
  917. X/* unlink an element from the list */
  918. X
  919. Xunlink(ptr)
  920. Xregister struct list *ptr;
  921. X   {
  922. X   if (ptr->next != NULL_LIST)
  923. X      ptr->next->prev = ptr->prev;
  924. X   if (ptr->prev != NULL_LIST)
  925. X      ptr->prev->next = ptr->next;
  926. X   }
  927. X
  928. X/* get font, name for an element */
  929. X
  930. Xcreate(name,ptr)
  931. Xchar *name;
  932. Xregister struct list *ptr;
  933. X   {
  934. X   char *save_line();
  935. X
  936. X   if (ptr->name != NULL)
  937. X      free(ptr->name);
  938. X   if (ptr->font != (struct font *) 0) 
  939. X      free_font(ptr->font);
  940. X   ptr->name = save_line(name);
  941. X   ptr->font = open_font(name);
  942. X   }
  943. X
  944. X/* manage the list of fonts (using LRU) */
  945. X
  946. Xstruct font *
  947. Xget_font(name)
  948. Xchar *name;
  949. X   {
  950. X   static count = 0;
  951. X   register struct list *ptr;
  952. X   register int found=0;
  953. X   char *alloc();
  954. X   
  955. X   if (name == (char *) 0 || *name == '\0')
  956. X      return((struct font *) 0);
  957. X
  958. X   if (count>0 && strcmp(name,list_top->name)==0) {
  959. X      return(list_top->font);
  960. X      }
  961. X   
  962. X   for(ptr=list_top;count>0;ptr=ptr->next) {
  963. X      if (found=(ptr->name && strcmp(name,ptr->name)==0)) {
  964. X         unlink(ptr);
  965. X         insert(ptr);
  966. X         break;
  967. X         }
  968. X      if (ptr->next == NULL_LIST)
  969. X         break;
  970. X      }
  971. X   if (!found && count<MAX_FONT) {
  972. X      ptr = (struct list *) alloc(sizeof(struct list));
  973. X      ptr->name = NULL;
  974. X      ptr->font = (struct font *) NULL;
  975. X      create(name,ptr);
  976. X      insert(ptr);
  977. X      count++; 
  978. X      }
  979. X   else if (!found) {
  980. X      unlink(ptr);
  981. X      create(name,ptr);
  982. X      insert(ptr);
  983. X      }
  984. X   return(list_top->font);
  985. X   }
  986. X
  987. X/* misc stuff */
  988. X
  989. Xchar *
  990. Xalloc(size)
  991. Xint size;
  992. X   {
  993. X   char *malloc();
  994. X   char *temp;
  995. X
  996. X   if ((temp=malloc(size)) == NULL)
  997. X      perror("malloc failed - called from alloc()\n");
  998. X   return(temp);
  999. X   }
  1000. X
  1001. Xchar *
  1002. Xsave_line(s)
  1003. Xchar *s;
  1004. X   {
  1005. X   char *strcpy(), *alloc();
  1006. X
  1007. X   if (s==NULL) return(s);
  1008. X   return(strcpy(alloc(strlen(s)+1),s));
  1009. X   }
  1010. END_OF_FILE
  1011. # end of 'src/get_font.c'
  1012. fi
  1013. if test -f 'src/menu.h' -a "${1}" != "-c" ; then 
  1014.   echo shar: Will not clobber existing file \"'src/menu.h'\"
  1015. else
  1016. echo shar: Extracting \"'src/menu.h'\" \(3215 characters\)
  1017. sed "s/^X//" >'src/menu.h' <<'END_OF_FILE'
  1018. X/*                        Copyright (c) 1987 Bellcore
  1019. X *                            All Rights Reserved
  1020. X *       Permission is granted to copy or use this program, EXCEPT that it
  1021. X *       may not be sold for profit, the copyright notice must be reproduced
  1022. X *       on copies, and credit should be given to Bellcore where it is due.
  1023. X *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  1024. X */
  1025. X/*    $Header: menu.h,v 4.1 88/06/21 13:34:13 bianchi Exp $
  1026. X    $Source: /tmp/mgrsrc/src/RCS/menu.h,v $
  1027. X*/
  1028. Xstatic char    h_menu_[] = "$Source: /tmp/mgrsrc/src/RCS/menu.h,v $$Revision: 4.1 $";
  1029. X
  1030. X/* header file for menu management routines */
  1031. X/* redo this one */
  1032. X
  1033. X/* low level menu routine parameters */
  1034. X
  1035. X#define MENU_BORDER        3    /* size of border around menu */
  1036. X
  1037. X/* high level menu routine params */
  1038. X
  1039. X#define EXIT_CHOICE    0    /* item was chosen */
  1040. X#define EXIT_BOTTOM    1    /* menu exited from bottom */
  1041. X#define EXIT_TOP    2    /* menu exited from top */
  1042. X#define EXIT_LEFT    4    /* menu exited from left */
  1043. X#define EXIT_RIGHT    8    /* menu exited from right */
  1044. X
  1045. X#define MENU_FLAGS    1    /* change menu flags */
  1046. X#define MENU_AUTO    2    /* auto exit from menu to next */
  1047. X#define MENU_PAGE    4    /* auto page from menu to next */
  1048. X#define MENU_SNIP    8    /* only return leaf entries */
  1049. X
  1050. X/* menu struct member access macros */
  1051. X
  1052. X#define menu_exit(state)    (state)->exit
  1053. X#define menu_choice(state)    (state)->current
  1054. X#define menu_ischoice(state)    ((state)->current>=0 && \
  1055. X                 (state)->current<(state)->count)
  1056. X#define menu_ypos(state)    ((state)->menu_start.y + \
  1057. X                                 (state)->current * \
  1058. X                                 (state)->bar_size.y)
  1059. X#define menu_value(state)    (menu_ischoice(state)&&state->action? \
  1060. X                                 state->action[state->current].value: \
  1061. X                                 (char *) 0)
  1062. X#define menu_next(state)    ( menu_exit(state)==EXIT_BOTTOM && \
  1063. X                    (state)->next>=0 ? (state)->next : \
  1064. X                  (menu_ischoice(state)? \
  1065. X                                 (state)->action[(state)->current].next_menu:\
  1066. X                                  -1))
  1067. X#define menu_setnext(state,nxt)    ((state)->action[nxt].next_menu)
  1068. X
  1069. X/* menu structures */
  1070. X
  1071. Xstruct menu_action {
  1072. X   char *value;            /* string associated with item */
  1073. X   short next_menu;        /* next menu number off right */
  1074. X   };
  1075. X
  1076. Xstruct menu_result {
  1077. X   char *value;            /* value string for this menu chioce */
  1078. X   struct menu_result *next;    /* next string */
  1079. X   };
  1080. X
  1081. Xstruct menu_state {
  1082. X   BITMAP *menu;    /* where the menu image goes */
  1083. X   BITMAP *screen;    /* pointer to the display */
  1084. X   BITMAP *save;    /* stuff covered by menu */
  1085. X   short menu_startx,     /* menu starting coords on screen */
  1086. X         menu_starty;
  1087. X   short bar_sizex,     /* size of one menu item */
  1088. X         bar_sizey,
  1089. X         x_pos;        /* x position relative to inside */
  1090. X   struct menu_action *action;    /* value associated with each item */
  1091. X   short current;            /* currently selected bar */
  1092. X   short exit;            /* mouse position in menu */
  1093. X   short count;            /* number of entries */
  1094. X   short next;            /* index of next menu page */
  1095. X   short flags;            /* menu flags */
  1096. X   };
  1097. X
  1098. Xstruct menu_state *menu_setup();
  1099. Xstruct menu_state *menu_define();
  1100. Xstruct menu_state *menu_remove();
  1101. Xstruct menu_state *menu_copy();
  1102. END_OF_FILE
  1103. # end of 'src/menu.h'
  1104. fi
  1105. echo shar: End of archive 15 \(of 61\).
  1106. cp /dev/null ark15isdone
  1107. MISSING=""
  1108. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
  1109.     21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 \
  1110.     38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 \
  1111.     55 56 57 58 59 60 61 ; do
  1112.     if test ! -f ark${I}isdone ; then
  1113.     MISSING="${MISSING} ${I}"
  1114.     fi
  1115. done
  1116. if test "${MISSING}" = "" ; then
  1117.     echo You have unpacked all 61 archives.
  1118.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1119. else
  1120.     echo You still need to unpack the following archives:
  1121.     echo "        " ${MISSING}
  1122. fi
  1123. ##  End of shell archive.
  1124. exit 0
  1125.